Integrand size = 29, antiderivative size = 76 \[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=-\frac {2^{1+m} \cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},1+m,\frac {3}{2},-\frac {5 (3-3 \sin (e+f x))}{3+3 \sin (e+f x)}\right ) (1+\sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m}{f} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.53, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {2867, 134} \[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\frac {\sqrt {-\frac {1-\sin (e+f x)}{\sin (e+f x)+1}} \cos (e+f x) (3-2 \sin (e+f x))^{-m} (a \sin (e+f x)+a)^m \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-m,1-m,\frac {2 (3-2 \sin (e+f x))}{\sin (e+f x)+1}\right )}{\sqrt {5} f m (1-\sin (e+f x))} \]
[In]
[Out]
Rule 134
Rule 2867
Rubi steps \begin{align*} \text {integral}& = \frac {\left (a^2 \cos (e+f x)\right ) \text {Subst}\left (\int \frac {(3-2 x)^{-1-m} (a+a x)^{-\frac {1}{2}+m}}{\sqrt {a-a x}} \, dx,x,\sin (e+f x)\right )}{f \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}} \\ & = \frac {\cos (e+f x) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},-m,1-m,\frac {2 (3-2 \sin (e+f x))}{1+\sin (e+f x)}\right ) (3-2 \sin (e+f x))^{-m} \sqrt {-\frac {1-\sin (e+f x)}{1+\sin (e+f x)}} (a+a \sin (e+f x))^m}{\sqrt {5} f m (1-\sin (e+f x))} \\ \end{align*}
Result contains complex when optimal does not.
Time = 9.78 (sec) , antiderivative size = 273, normalized size of antiderivative = 3.59 \[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=-\frac {3^m \operatorname {Hypergeometric2F1}\left (1+m,1+2 m,2 (1+m),\frac {4 \sqrt {5} (1-i \cos (e+f x)+\sin (e+f x))}{\left (5+\sqrt {5}\right ) \left (-3+\sqrt {5}-2 i \cos (e+f x)+2 \sin (e+f x)\right )}\right ) (3-2 \sin (e+f x))^{-1-m} \left (3+\sqrt {5}+2 i \cos (e+f x)-2 \sin (e+f x)\right ) (1+\sin (e+f x))^m (i \cos (e+f x)+\sin (e+f x)) \left (\frac {\left (-5+\sqrt {5}\right ) \left (3+\sqrt {5}+2 i \cos (e+f x)-2 \sin (e+f x)\right )}{-3+\sqrt {5}-2 i \cos (e+f x)+2 \sin (e+f x)}\right )^m (\cos (e+f x)+i (1+\sin (e+f x))) \left (\cosh \left (m \log \left (5+\sqrt {5}\right )\right )-\sinh \left (m \log \left (5+\sqrt {5}\right )\right )\right )}{\left (5+\sqrt {5}\right ) f (1+2 m)} \]
[In]
[Out]
\[\int \left (3-2 \sin \left (f x +e \right )\right )^{-1-m} \left (a +a \sin \left (f x +e \right )\right )^{m}d x\]
[In]
[Out]
\[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-2 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1} \,d x } \]
[In]
[Out]
\[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int \left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{m} \left (3 - 2 \sin {\left (e + f x \right )}\right )^{- m - 1}\, dx \]
[In]
[Out]
\[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-2 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1} \,d x } \]
[In]
[Out]
\[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int { {\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (-2 \, \sin \left (f x + e\right ) + 3\right )}^{-m - 1} \,d x } \]
[In]
[Out]
Timed out. \[ \int (3-2 \sin (e+f x))^{-1-m} (3+3 \sin (e+f x))^m \, dx=\int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m}{{\left (3-2\,\sin \left (e+f\,x\right )\right )}^{m+1}} \,d x \]
[In]
[Out]